package com.handpay.zztong.hp.nocardpay.adapter;

import android.content.Context;

import com.handpay.zztong.hp.R;
import com.handpay.zztong.hp.base.adapter.BaseListViewAdapter;
import com.handpay.zztong.hp.base.adapter.BaseListViewViewHolder;
import com.handpay.zztong.hp.nocardpay.MerchantTypeList;

/**
 * Created by sxshi on 2017/7/12.
 * 商户类型Adapter
 */

public class MerchantTypeAdapter extends BaseListViewAdapter<MerchantTypeList.MerchantType> {
    public MerchantTypeAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId(int postion) {
        return R.layout.item_merchantype;
    }

    @Override
    public void convert(BaseListViewViewHolder holder, MerchantTypeList.MerchantType merchantType, int position) {
        holder.setText(R.id.tv_merchanName, merchantType.getMerchClassName());
    }

}
